package com.xianzhiOA.service.impl;

import com.xianzhiOA.bean.XzComment;
import com.xianzhiOA.dao.XzCommentMapper;
import com.xianzhiOA.service.XzCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/4/18.
 */
@Service("xzCommentService")
public class XzCommentServiceImpl implements XzCommentService {

    @Autowired
    private XzCommentMapper commentMapper;

    @Override
    public int insertComment(XzComment comment) {
        return commentMapper.insert(comment);
    }

    @Override
    public int selectCommentExist(Long personId) {
        return commentMapper.selCommentExist(personId);
    }
}
